package vno.fux
{
	import flash.geom.Point;
	
	import vno.sci.mapEditor.IPoint;

	/**
	 * 基础点类，继承自flash.geom.Point
	 **/
	public class BasePoint extends Point
	{
		public function BasePoint(x:Number=0, y:Number=0)
		{
			super(x,y);
		}
		
		public function add2(p:BasePoint):BasePoint
		{
			return new BasePoint(x+p.x, y+p.y);
		}
		
		public function subtract2(p:BasePoint):BasePoint
		{
			// TODO Auto Generated method stub
			return new BasePoint(x-p.x, y-p.y);
		}
	}
}